package com.csx.base.design.behavior.visitor;

import java.time.LocalDate;

/**
 * @author cuisongxu
 * @date 2022/10/13 12:06
 */
public class Candy extends Product implements Acceptable{

    public Candy(String name, LocalDate produceDate, float price) {
        super(name, produceDate, price);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
